<?php if(isset($banner_middle) && $banner_middle->num_rows() > 0): ?>
<!-- ads -->
<div class="container">
  <section class="panel m-b m-t">
  <?php foreach($banner_middle->result_array() as $row): ?>
    <a href="<?php echo $row[field('url')]; ?>">
      <img src="<?php echo base_url(UPLOAD_PATH.'banners/'.$row[field('image')]); ?>" width="100%" height="100px" />
    </a>
  <?php endforeach; ?>
  </section>
</div>
<!-- end ads -->
<?php endif; ?>
